| Conditions | 2 |
| Total Lines | 9 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { Strategy } from 'passport-local'; |
||
| 18 | |||
| 19 | public async validate( |
||
| 20 | email: string, |
||
| 21 | password: string |
||
| 22 | ): Promise<AuthenticatedView> { |
||
| 23 | try { |
||
| 24 | return await this.queryBus.execute(new LoginQuery(email, password)); |
||
| 25 | } catch (err) { |
||
| 26 | throw new UnauthorizedException('login-error-failed'); |
||
| 27 | } |
||
| 30 |